package com.ziyun.pop.modules.micro.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

@TableName("config_anonymous_request")
public class ConfigAnonymousRequestEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@TableId(type = IdType.AUTO)
	private String id;

	/** 匿名请求钥匙 */
	private String anonymousKey;

	/** 是否被使用过 */
	private Boolean used;

	/** ip */
	private String ip;

	/** 创建时间 */
	private Date createTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAnonymousKey() {
		return anonymousKey;
	}

	public void setAnonymousKey(String anonymousKey) {
		this.anonymousKey = anonymousKey;
	}

	public Boolean getUsed() {
		return used;
	}

	public void setUsed(Boolean used) {
		this.used = used;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}


    @Override
    public String toString() {
        return "ConfigAnonymousRequest{" +
                "id='" + id + '\'' +
                ", anonymousKey='" + anonymousKey + '\'' +
                ", used=" + used +
                ", ip='" + ip + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
